package com.woniuxy.crm.Dao;

//public interface EmployeeDao {
//      void add(Employee employee) ;
//    {
//        if (employeeList.contains(employee.getTelenub())) {
//            throw new EmployeeSameTelenub();
//        } else {
//            employeeList.add(employee);
//        }
//    }

//      void select(String sum);
//    {
//        List<Employee> employeeList1 = new ArrayList<>();
//        for (int i = 0; i < employeeList.size(); i++) {
//            if (sum.equals(employeeList.get(i).getName()) || sum.equals(employeeList.get(i).getTelenub())) {
//                employeeList1.add(employeeList.get(i));
//            }
//        }
//        if (employeeList1.size() == 0) {
//            throw new EmployeeNopeopel();
//        } else {
//            for (int i = 0; i < employeeList1.size(); i++) {
//                System.out.println(employeeList1.get(i));
//            }
//        }
//    }
//}
